package io.afu.nginxhelper.dto.common.server;

import io.afu.nginxhelper.dto.ErrorPage;

import java.util.List;

/**
 * @author RffanLAB.方露宇
 * @version 0.1
 */
public class Server {

    public static final String KEY = "server";

    private List<Listen> listen;

    private String serverName;

    private String root;

    private List<Location> locations;

    List<ErrorPage> errorPages;



    public void addProxy(){

    }

    public List<ErrorPage> getErrorPages() {
        return errorPages;
    }

    public void setErrorPages(List<ErrorPage> errorPages) {
        this.errorPages = errorPages;
    }

    public List<Listen> getListen() {
        return listen;
    }

    public void setListen(List<Listen> listen) {
        this.listen = listen;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getRoot() {
        return root;
    }

    public void setRoot(String root) {
        this.root = root;
    }

    public List<Location> getLocations() {
        return locations;
    }

    public void setLocations(List<Location> locations) {
        this.locations = locations;
    }
}
